<?php

namespace Model\CourseBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Course
 *
 * @ORM\Table(name="Course")
 * @ORM\Entity(repositoryClass="Model\CourseBundle\Repository\CourseRepository")
 */
class Course
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="userId", type="integer")
     */
    private $userId;

    /**
     * @var string
     *
     * @ORM\Column(name="title", type="string", length=255)
     */
    private $title;

    /**
     * @var int
     *
     * @ORM\Column(name="category", type="integer")
     */
    private $category;

    /**
     * @var string
     *
     * @ORM\Column(name="picCover", type="string", length=255)
     */
    private $picCover;

    /**
     * @var string
     *
     * @ORM\Column(name="picMain", type="string", length=255)
     */
    private $picMain;

    /**
     * @var string
     *
     * @ORM\Column(name="info", type="text")
     */
    private $info;

    /**
     * @var string
     *
     * @ORM\Column(name="addTime", type="string", length=11)
     */
    private $addTime;

    /**
     * @var string
     *
     * @ORM\Column(name="updateTime", type="string", length=11)
     */
    private $updateTime;

    /**
     * @var string
     *
     * @ORM\Column(name="status", type="string", length=11)
     */
    private $status;

    /*
     * 筛选条件
     * isHot    //热门
     * isTop    //置顶
     * isPic    //主图
     * isWebIndex   //网站主页展示
     * isAppIndex   //APP首页展示
     * isRecommend  //平台推荐
     */

    /**
     * @var int
     *
     * @ORM\Column(name="isHot", type="integer")
     */
    private $isHot = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isTop", type="integer")
     */
    private $isTop = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isPic", type="integer")
     */
    private $isPic = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isWebIndex", type="integer")
     */
    private $isWebIndex = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isAppIndex", type="integer")
     */
    private $isAppIndex = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="isRecommend", type="integer")
     */
    private $isRecommend = 0;

    /**
     * @var string
     *
     * @ORM\Column(name="uniqueId", type="string", length=100)
     */
    private $uniqueId;

    /**
     * @var int
     *
     * @ORM\Column(name="studentNow", type="integer")
     */
    private $studentNow = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="studentHistory", type="integer")
     */
    private $studentHistory = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="hit", type="integer")
     */
    private $hit = 0;

    /**
     * @var int
     *
     * @ORM\Column(name="likes", type="integer")
     */
    private $likes = 0;



    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set title
     *
     * @param string $title
     *
     * @return Course
     */
    public function setTitle($title)
    {
        $this->title = $title;

        return $this;
    }

    /**
     * Get title
     *
     * @return string
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set CourseCategory
     *
     * @param integer $category
     *
     * @return Course
     */
    public function setCategory($category)
    {
        $this->category = $category;

        return $this;
    }

    /**
     * Get CourseCategory
     *
     * @return int
     */
    public function getCategory()
    {
        return $this->category;
    }

    /**
     * Set info
     *
     * @param string $info
     *
     * @return Course
     */
    public function setInfo($info)
    {
        $this->info = $info;

        return $this;
    }

    /**
     * Get info
     *
     * @return string
     */
    public function getInfo()
    {
        return $this->info;
    }

    /**
     * Set addTime
     *
     * @param string $addTime
     *
     * @return Course
     */
    public function setAddTime($addTime)
    {
        $this->addTime = $addTime;

        return $this;
    }

    /**
     * Get addTime
     *
     * @return string
     */
    public function getAddTime()
    {
        return $this->addTime;
    }

    /**
     * Set isHot
     *
     * @param integer $isHot
     *
     * @return Course
     */
    public function setIsHot($isHot)
    {
        $this->isHot = $isHot;

        return $this;
    }

    /**
     * Get isHot
     *
     * @return integer
     */
    public function getIsHot()
    {
        return $this->isHot;
    }

    /**
     * Set isTop
     *
     * @param integer $isTop
     *
     * @return Course
     */
    public function setIsTop($isTop)
    {
        $this->isTop = $isTop;

        return $this;
    }

    /**
     * Get isTop
     *
     * @return integer
     */
    public function getIsTop()
    {
        return $this->isTop;
    }

    /**
     * Set isPic
     *
     * @param integer $isPic
     *
     * @return Course
     */
    public function setIsPic($isPic)
    {
        $this->isPic = $isPic;

        return $this;
    }

    /**
     * Get isPic
     *
     * @return integer
     */
    public function getIsPic()
    {
        return $this->isPic;
    }

    /**
     * Set isWebIndex
     *
     * @param integer $isWebIndex
     *
     * @return Course
     */
    public function setIsWebIndex($isWebIndex)
    {
        $this->isWebIndex = $isWebIndex;

        return $this;
    }

    /**
     * Get isWebIndex
     *
     * @return integer
     */
    public function getIsWebIndex()
    {
        return $this->isWebIndex;
    }

    /**
     * Set isAppIndex
     *
     * @param integer $isAppIndex
     *
     * @return Course
     */
    public function setIsAppIndex($isAppIndex)
    {
        $this->isAppIndex = $isAppIndex;

        return $this;
    }

    /**
     * Get isAppIndex
     *
     * @return integer
     */
    public function getIsAppIndex()
    {
        return $this->isAppIndex;
    }

    /**
     * Set picCover
     *
     * @param string $picCover
     *
     * @return Course
     */
    public function setPicCover($picCover)
    {
        $this->picCover = $picCover;

        return $this;
    }

    /**
     * Get picCover
     *
     * @return string
     */
    public function getPicCover()
    {
        return $this->picCover;
    }

    /**
     * Set picMain
     *
     * @param string $picMain
     *
     * @return Course
     */
    public function setPicMain($picMain)
    {
        $this->picMain = $picMain;

        return $this;
    }

    /**
     * Get picMain
     *
     * @return string
     */
    public function getPicMain()
    {
        return $this->picMain;
    }

    /**
     * Set updateTime
     *
     * @param string $updateTime
     *
     * @return Course
     */
    public function setUpdateTime($updateTime)
    {
        $this->updateTime = $updateTime;

        return $this;
    }

    /**
     * Get updateTime
     *
     * @return string
     */
    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    /**
     * Set status
     *
     * @param string $status
     *
     * @return Course
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return string
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set isRecommend
     *
     * @param integer $isRecommend
     *
     * @return Course
     */
    public function setIsRecommend($isRecommend)
    {
        $this->isRecommend = $isRecommend;

        return $this;
    }

    /**
     * Get isRecommend
     *
     * @return integer
     */
    public function getIsRecommend()
    {
        return $this->isRecommend;
    }

    /**
     * Set userId
     *
     * @param integer $userId
     *
     * @return Course
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;

        return $this;
    }

    /**
     * Get userId
     *
     * @return integer
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * Set uniqueId
     *
     * @param string $uniqueId
     *
     * @return Course
     */
    public function setUniqueId($uniqueId)
    {
        $this->uniqueId = $uniqueId;

        return $this;
    }

    /**
     * Get uniqueId
     *
     * @return string
     */
    public function getUniqueId()
    {
        return $this->uniqueId;
    }

    /**
     * Set studentNow
     *
     * @param integer $studentNow
     *
     * @return Course
     */
    public function setStudentNow($studentNow)
    {
        $this->studentNow = $studentNow;

        return $this;
    }

    /**
     * Get studentNow
     *
     * @return integer
     */
    public function getStudentNow()
    {
        return $this->studentNow;
    }

    /**
     * Set studentHistory
     *
     * @param integer $studentHistory
     *
     * @return Course
     */
    public function setStudentHistory($studentHistory)
    {
        $this->studentHistory = $studentHistory;

        return $this;
    }

    /**
     * Get studentHistory
     *
     * @return integer
     */
    public function getStudentHistory()
    {
        return $this->studentHistory;
    }

    /**
     * Set hit
     *
     * @param integer $hit
     *
     * @return Course
     */
    public function setHit($hit)
    {
        $this->hit = $hit;

        return $this;
    }

    /**
     * Get hit
     *
     * @return integer
     */
    public function getHit()
    {
        return $this->hit;
    }

    /**
     * Set likes
     *
     * @param integer $likes
     *
     * @return Course
     */
    public function setLikes($likes)
    {
        $this->likes = $likes;

        return $this;
    }

    /**
     * Get likes
     *
     * @return integer
     */
    public function getLikes()
    {
        return $this->likes;
    }
}
